package cn.tedu.tmall.front.mall.dao.repository;
import cn.tedu.tamll.common.pojo.vo.PageData;
import cn.tedu.tmall.front.mall.pojo.po.OrderItemPO;
import cn.tedu.tmall.front.mall.pojo.po.OrderPO;

import java.util.List;

public interface IOrderRepository {
    Integer save(OrderPO orderPO);

    PageData<OrderPO> pageOrderByUserId(Long userId, Integer pageSize, Integer pageNum);

    List<OrderItemPO> listOrderItemByOrderId(Long id);

    List<OrderItemPO> listOrderItemByOrderIds(List<Long> orderIds);

    OrderPO getOrderByUserIdAndOrderNo(Long userId, String orderNo);
}
